import cv2

image = cv2.imread('plane.jpg')

gaussian = cv2.GaussianBlur(image, (5, 5), 0)
#高斯模糊，(5, 5)表示高斯核的大小，0表示标准差
median = cv2.medianBlur(image, 5)
#中值模糊，5表示核的大小

cv2.imshow("image", image)
cv2.imshow("gaussian", gaussian)
cv2.imshow("median", median)
cv2.waitKey()
cv2.destroyAllWindows()